package hut.game.table;

import hut.game.unit.QuanCo;

public class NuocDi implements Comparable<NuocDi>{
	
	public QuanCo Dau;
    public QuanCo Cuoi;
    //----------------
    public int Hang_Dau;
    public int Cot_Dau;
    public int TrangThaiDau;
    //----------------
    public int Hang_Cuoi;
    public int Cot_Cuoi;
    public int TrangThaiCuoi;
    //----------------
    public int score;
    
    public NuocDi() {
    	Dau = new QuanCo();
    	Hang_Dau = 0;
    	Cot_Dau = 0;
    	
    	Cuoi = new QuanCo();
    	Hang_Cuoi = 0;
    	Cot_Cuoi = 0;
    	TrangThaiCuoi = 0;

    	score = 0;
    }
	
    @Override
	public int compareTo(NuocDi another) {
		if(this.score > another.score)
			return this.score;
		else if(this.score == another.score)
			return 0;
		else return another.score;
	}
}